package com.cet6.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("words")
public class Word {
    
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    /**
     * 单词
     */
    private String word;
    
    /**
     * 音标
     */
    private String phonetic;
    
    /**
     * 释义
     */
    private String definition;
    
    /**
     * 词性
     */
    private String partOfSpeech;
    
    /**
     * 例句
     */
    private String example;
    
    /**
     * 难度等级 (1-6)
     */
    private Integer difficulty;
    
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    
    /**
     * 更新时间
     */
    private LocalDateTime updateTime;
    
    /**
     * 是否删除 (0-未删除, 1-已删除)
     */
    private Integer deleted;
}
